﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace demo.Pages
{
    public partial class Ajax : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                this.Label3.Text = this.Label3.Text == "AutoUpdatedAfterCallBack1" ? "AutoUpdatedAfterCallBack2" : "AutoUpdatedAfterCallBack1";
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            this.Label1.Text = this.Label1.Text == "water ajax1" ? "water ajax2" : "water ajax1";
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            this.Label2.Text = this.Label2.Text == "water1" ? "water2" : "water1";
        }
    }
}
